package cn.redsoft.wechatapi.msg.resp.passivity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class MusicResponseMsg extends PassivityResponseMsg {

	@XStreamAlias("Music")
	private Music music;

	public MusicResponseMsg() {
		this.msgType = PassivityResponseMsgType.MUSIC;
	}

	public Music getMusic() {
		return music;
	}

	public void setMusic(Music music) {
		this.music = music;
	}

	@Override
	public String toString() {
		return "MusicResponseMsg [music=" + music + ", toUserName="
				+ toUserName + ", fromUserName=" + fromUserName
				+ ", createTime=" + createTime + ", msgType=" + msgType + "]";
	}

	@XStreamAlias("Music")
	public static class Music {

		@XStreamAlias("Title")
		private String title;

		@XStreamAlias("Description")
		private String description;

		@XStreamAlias("MusicUrl")
		private String musicUrl;

		@XStreamAlias("HQMusicUrl")
		private String hQMusicUrl;

		@XStreamAlias("ThumbMediaId")
		private String thumbMediaId;

		public Music() {
			super();
		}

		public Music(String title, String description, String musicUrl,
				String hQMusicUrl, String thumbMediaId) {
			super();
			this.title = title;
			this.description = description;
			this.musicUrl = musicUrl;
			this.hQMusicUrl = hQMusicUrl;
			this.thumbMediaId = thumbMediaId;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getDescription() {
			return description;
		}

		public void setDescription(String description) {
			this.description = description;
		}

		public String getMusicUrl() {
			return musicUrl;
		}

		public void setMusicUrl(String musicUrl) {
			this.musicUrl = musicUrl;
		}

		public String getHQMusicUrl() {
			return hQMusicUrl;
		}

		public void setHQMusicUrl(String hQMusicUrl) {
			this.hQMusicUrl = hQMusicUrl;
		}

		public String getThumbMediaId() {
			return thumbMediaId;
		}

		public void setThumbMediaId(String thumbMediaId) {
			this.thumbMediaId = thumbMediaId;
		}

		@Override
		public String toString() {
			return "Music [Title=" + title + ", Description=" + description
					+ ", MusicUrl=" + musicUrl + ", HQMusicUrl=" + hQMusicUrl
					+ ", ThumbMediaId=" + thumbMediaId + "]";
		}

	}
}
